from tortoise import fields
from tortoise.models import Model
from tortoise.validators import MinLengthValidator, MaxLengthValidator


class Rag_db(Model):
    id = fields.IntField(pk=True)
    rag_name = fields.CharField(unique=True, max_length=128,description='向量数据库名')
    description=fields.TextField(max_length=5000,description='描述')
    rag_path=fields.CharField(max_length=200,description='向量数据库地址')
    chunks=fields.TextField(description='知识库文本信息')